import 'package:citiesocial/beans/goods_entity.dart';

class ThemeEntity {
  String theme_id, theme_name, theme_img;
  List<GoodsEntity> goods_list;

  @override
  ThemeEntity.fromJson(dynamic json) {
    if (json != null && json is Map) {
      theme_id = json['theme_id'];
      theme_name = json['theme_name'];
      theme_img = json['theme_img'];
      var goods = json['goods_list'] as List ?? [];
      goods_list = List();
      for (dynamic g in goods) {
        goods_list.add(GoodsEntity.fromJson(g));
      }
    }
  }
}
